package com.googlecode.jtoy.mybatis.persistence;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.googlecode.jtoy.mybatis.domain.User;

public interface UserMapper {

	List<User> findAll();

	Integer updatePasswordByUsername(@Param("username") String username,
			@Param("password") String password);

	Integer insert(User user);

	Integer deleteById(int id);

}
